/*
 * This file (RxViolin.java) is protected by the GNU GPL licence (v2). 
 * Please read the license.txt attached for further informations. 
 * 
 */

package alkwarel.filters;

import alkwarel.objects.RxSimpleFilter;

/**
 * @author Xavier Gouchet
 *
 */
public class RxViolin extends RxSimpleFilter {

	/**
	 * Violin
	 */
	public RxViolin() {
		super(1001, "violin");
	}
	
	/**
	 * @see alkwarel.objects.RxSimpleFilter#FilterPixel()
	 */
	protected void FilterPixel() {
		this.H(180 + vval/3); 
	    this.S(1000 - (7*vval)/2 );
	    if (vval>=128) this.V(191 + (64*(vval-128))/128 );
	}

}
